package com.wzh.project.exception;

import java.util.ArrayList;
import java.util.List;

/**
*@author : 汪振海
*@createdDate : Mar 19, 2020  4:24:36 PM
*@description : <br>
*
*/
public class StaticParams {
	 
	  private static int NUM_A = getA();
	    private static int NUM_B = getB();
	    private static List<String> LIST_A = getListA();
	  
	    StaticParams() {
	      System.out.println("初始化构造方法");
	 }
	 
	  public static StaticParams getInstance() {
	      return new StaticParams();
	  }
	 
	  private static int getA() {
	       System.out.println("初始化A");
	        return 10;
	   }
	 
	  private static int getB() {
	       System.out.println("初始化B");
	        return 20;
	   }
	 
	  private static List<String> getListA() {
	      System.out.println("初始化List");
	     return new ArrayList<String>();
	   }
	   
	    public static void main(String[] args) {
	      StaticParams.getInstance();
	 }
	}